﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Lidgren.Network;

namespace CodeGame.Networking
{
    public class NetworkingGlobals
    {
        public static NetPeerConfiguration ClientConfig = new NetPeerConfiguration("codeGame");
        public static NetPeerConfiguration ServerConfig = new NetPeerConfiguration("codeGame");

        public static int ServerPort = 23245;

        public static void InitConfigs()
        {
            NetworkingGlobals.ServerConfig.Port = ServerPort;
            NetworkingGlobals.ServerConfig.MaximumConnections = 128;
            NetworkingGlobals.ServerConfig.EnableMessageType(NetIncomingMessageType.ConnectionApproval);
        }
    }
}
